﻿<UserControl x:Class="Ops.Mpc.ExampleApplication.BusyControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Visibility="Collapsed"  >
    <Grid>

        <Border Background="White" BorderBrush="Blue" BorderThickness="1" Padding="10" CornerRadius="10" VerticalAlignment="Center" HorizontalAlignment="Center">
            <StackPanel Orientation="Horizontal" >
                <Grid x:Name="LayoutRoot" Height="34" Width="34" VerticalAlignment="Center" HorizontalAlignment="Center" >
                    <Grid.Resources>
                        <Storyboard x:Name="Animation" RepeatBehavior="Forever">
                            <DoubleAnimation Storyboard.TargetName="Rotate" Storyboard.TargetProperty="Angle" To="360" From="0" By="1" Duration="00:00:01" />
                        </Storyboard>
                    </Grid.Resources>
                    <Image Source="/Ops.Mpc.ExampleApplication;component/Images/Loading.png" Stretch="None" x:Name="Image" VerticalAlignment="Center">
                        <Image.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="0" CenterX="17" CenterY="17" x:Name="Rotate"></RotateTransform>
                            </TransformGroup>
                        </Image.RenderTransform>
                    </Image>
                </Grid>
                <TextBlock x:Name="TextBox" VerticalAlignment="Center" Margin="4,0,0,0"/>
            </StackPanel>
        </Border>

        <Grid x:Name="Overlay" Opacity=".5" Background="LightGray">

        </Grid>
    </Grid>
</UserControl>

